package com.ruoyi.mark.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车辆表功能对象 cf_car
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
public class CfCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id【外键】 */
    @Excel(name = "用户id【外键】")
    private Long userId;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private Long carType;

    /** 车辆型号 */
    @Excel(name = "车辆型号")
    private Long carModel;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNumber;

    /** 是否为默认车辆 */
    @Excel(name = "是否为默认车辆")
    private Long type;

    /** 车辆照片 */
    @Excel(name = "车辆照片")
    private String photo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCarType(Long carType) 
    {
        this.carType = carType;
    }

    public Long getCarType() 
    {
        return carType;
    }
    public void setCarModel(Long carModel) 
    {
        this.carModel = carModel;
    }

    public Long getCarModel() 
    {
        return carModel;
    }
    public void setCarNumber(String carNumber) 
    {
        this.carNumber = carNumber;
    }

    public String getCarNumber() 
    {
        return carNumber;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("carType", getCarType())
            .append("carModel", getCarModel())
            .append("carNumber", getCarNumber())
            .append("type", getType())
            .append("photo", getPhoto())
            .toString();
    }
}
